package com.example.demo.redisClient;

import java.util.Random;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2023-09-17
 * Time: 12:09
 */
public class Main {

    private static Random random = new Random();
    public static void main(String[] args) {
        char[] s = {'a','b','c','d','e'};
        for(int i =0;i<s.length;++i) {
            int j = random.nextInt(s.length);
            char tmp = s[i];
            s[i] = s[j];
            s[j] = tmp;
        }
        System.out.println(s);
    }
}
